﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Fsb.Utility
{
    public class JsonUtility
    {
        public static string Json(object item)
        {
            return Newtonsoft.Json.JsonConvert.SerializeObject(item);
        }

        public static T Object<T>(string jsonString)
        {
            return Newtonsoft.Json.JsonConvert.DeserializeObject<T>(jsonString);
        }
    }
}
